package com.jin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jin.bean.Unit;
import com.jin.bean.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * Created on 2024/6/5.
 *
 * @author Zhongyuan Jin
 */

public interface UnitMapper extends BaseMapper<Unit> {
    String getUnitNameById(@Param("unitId") Integer unitId);

    Unit getUnitByUserId(Long userId);

    List<Unit> selectUnits();
}
